home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Movie Toolbox / MyMultipleMoviesApp ƒ / MyMovieStuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-14  |  1.3 KB  |  45 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MyApplication.h
  3.     
  4.     Contains:    My Application Shell.
  5.  
  6.     Written by:    John Wang
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        03/14/94    JW        Re-Created for Universal Headers.
  13.  
  14.     To Do:
  15.     
  16. */
  17.  
  18. #ifdef THINK_C
  19. #define        applec
  20. #endif
  21.  
  22. struct WindowInfo {
  23.     //    Document info.
  24.     FSSpec            theFSSpec;        //    FSSpec for document.
  25.     short            refNum;            //    refNum for document.
  26.     
  27.     //    Current movie playing info.
  28.     Movie            theMovie;        //    Current movie.  nil if none.
  29.     MovieController    theMC;            //    Current movie controller.  nil if none.
  30.     Str255            moviename;        //    Name of movie if exists.
  31.     short            resId;            //    resource id of movie in document. -1 if no resId.
  32.     long            movieOffset;    //    offset to movie resource atom in data fork.  -1 if no offset.
  33. };
  34. typedef        struct WindowInfo WindowInfo, *WindowInfoPtr, **WindowInfoHandle;
  35.  
  36. /* ------------------------------------------------------------------------- */
  37.  
  38. void        adjustMoviesMenu(WindowPtr theWindow);
  39. void        SelectThisMovie(short item);
  40. void        getNewMovie(Movie *theMovie, Str255 *movieName);
  41. void        Mac_AddMovieResAtom(short *docRefNum, FSSpec *docFSSpec);
  42. void        Mac_AddMovieAll(short *docRefNum, FSSpec *docFSSpec);
  43. void        Cross_AddMovieAll(short *docRefNum, FSSpec *docFSSpec);
  44. void        Both_AddMovieAll(short *docRefNum, FSSpec *docFSSpec);
  45.